package org.platform.mo.db;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "tb_fd_kb_treenode")
public class FdKbTreenode {
    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Long id;

    /**
     * 位置
     */
    @Column(name = "Position")
    private String position;

    /**
     * 父节点号
     */
    @Column(name = "ParentID")
    private Long parentid;

    /**
     * 名称
     */
    @Column(name = "Name")
    private String name;

    /**
     * 孩子节点
     */
    @Column(name = "Children")
    private String children;

    /**
     * 节点类型(0：描述节点1：诊断节点 2：算法节点)
     */
    @Column(name = "NodeType")
    private Integer nodetype;

    /**
     * 诊断类型(0：监测点知识1：测试知识2：故障树知识
     * 3：案例知识4：专家知识5：标准参考源知识6：文档知识)
     */
    @Column(name = "DiagnoseType")
    private Integer diagnosetype;

    /**
     * 树ID
     */
    @Column(name = "TreeID")
    private Long treeid;

    /**
     * 知识ID
     */
    @Column(name = "KnowledgeID")
    private Long knowledgeid;

    /**
     * 算法类型(0：与
     * 1：或
     * 2：与或
     * 3：亦或
     * )
     */
    @Column(name = "ArithType")
    private Integer arithtype;

    @Column(name = "version")
    private Double version;
}